package org.maverick.persistence.simple.jpa;

import javax.persistence.EntityManagerFactory;

public class ManagerFactory {

	private static EntityManagerFactory factoryManager;

	private ManagerFactory() {
	}

	public static EntityManagerFactory currentManagerFactory() {
		if (factoryManager == null)
			factoryManager = javax.persistence.Persistence.createEntityManagerFactory("default");

		return factoryManager;
	}

}
